package com.linkdiner.dispatcher;

import java.util.HashMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.linkdiner.form.RegisterForm;
import com.linkdiner.service.Facade;

public class MainDispatcher {

private Facade facade;
private String command;
private int    commandIndex;
private HashMap<String,Integer> commandHM;

public void dispatch(HttpServletRequest request, HttpServletResponse response){
	command=request.getServletPath();
	//commandIndex = commandHM.get(command);
	commandIndex = 1;
	switch(commandIndex){
	case 1 : 
		RegisterForm RegisterFM = new RegisterForm();
		RegisterFM.setEmail(request.getParameter("email"));
		RegisterFM.setPassword(request.getParameter("password"));
		break;
	}
/*    if(command.equals("login")){
    	RegisterForm form = new RegisterForm();
    	form.setEmail(request.getParameter("email"));
    	form.setPassword(request.g)
    	facade.login(form); 
    }*/

}

}
